package com.zgjkhis.modules.system.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.domain.PageResult;
import com.zgjkhis.modules.system.domain.DrugInventory;
import com.zgjkhis.modules.system.domain.DrugInventoryDetail;
import com.zgjkhis.modules.system.domain.vo.DrugInventoryVo;
import com.zgjkhis.modules.system.req.InventoryExamineReq;
import com.zgjkhis.modules.system.service.dto.DrugInventoryQueryCriteria;
import com.zgjkhis.modules.system.service.dto.DrugWareHousingDetailDto;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Author yzq
 * @Description 盘点单
 * @Date 2021/6/23 9:45
 * @Param
 * @return
 **/
public interface DrugInventoryService extends BaseService<DrugInventory>{

    void dowonload(List<DrugWareHousingDetailDto> list, HttpServletResponse response) throws IOException;

    void batchInventory(MultipartFile file) throws IOException;

    PageResult<DrugInventory> findAllByPageable(DrugInventoryQueryCriteria criteria, Pageable pageable);

    void dowonloadInventoryDetail(List<DrugInventoryDetail> list, HttpServletResponse response) throws IOException;

    void examine(InventoryExamineReq request);

    DrugInventoryVo getDetail(String id);

}
